package com.xiaodou.mjf.application.fee.service.impl;

import com.xiaodou.mjf.application.fee.repository.ServeChargePackageDetailRepository;
import com.xiaodou.mjf.application.fee.service.ServeChargePackageDetailService;
import com.xiaodou.mjf.entity.fee.ServeChargePackageDetail;
import com.xiaodou.mjf.infrastructure.common.app.JpaSimpleService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.transaction.Transactional;
import java.util.List;


/***
 *
 * ServeChargePackageDetail业务访问实现
 * @author XiaoDou.com Code Generator
 * @version 1.0
 * 2014-10-29 17:37:52
 *
 */
@Service @Transactional
public class ServeChargePackageDetailServiceImpl extends JpaSimpleService<ServeChargePackageDetail,String> implements ServeChargePackageDetailService{

	Logger logger = LoggerFactory.getLogger(ServeChargePackageDetailServiceImpl.class);

    @Resource
    ServeChargePackageDetailRepository serveChargePackageDetailRepository;

    @Override
    protected JpaRepository<ServeChargePackageDetail, String> getRepository() {
        return serveChargePackageDetailRepository;
    }

    @Override
    public List<ServeChargePackageDetail> findByPackageId(String packageId) {
        return serveChargePackageDetailRepository.findByPackageId(packageId);
    }
}

